
{********************************************************************}
{                                                                    }
{       Developer Express Visual Component Library                   }
{       ExpressXPThemeManager                                        }
{                                                                    }
{       Copyright (c) 1998-2014 Developer Express Inc.               }
{       ALL RIGHTS RESERVED                                          }
{                                                                    }
{   The entire contents of this file is protected by U.S. and        }
{   International Copyright Laws. Unauthorized reproduction,         }
{   reverse-engineering, and distribution of all or any portion of   }
{   the code contained in this file is strictly prohibited and may   }
{   result in severe civil and criminal penalties and will be        }
{   prosecuted to the maximum extent possible under the law.         }
{                                                                    }
{   RESTRICTIONS                                                     }
{                                                                    }
{   THIS SOURCE CODE AND ALL RESULTING INTERMEDIATE FILES            }
{   (DCU, OBJ, DLL, ETC.) ARE CONFIDENTIAL AND PROPRIETARY TRADE     }
{   SECRETS OF DEVELOPER EXPRESS INC. THE REGISTERED DEVELOPER IS    }
{   LICENSED TO DISTRIBUTE THE EXPRESSXPTHEMEMANAGER AND ALL         }
{   ACCOMPANYING VCL CONTROLS AS PART OF AN EXECUTABLE PROGRAM ONLY. }
{                                                                    }
{   THE SOURCE CODE CONTAINED WITHIN THIS FILE AND ALL RELATED       }
{   FILES OR ANY PORTION OF ITS CONTENTS SHALL AT NO TIME BE         }
{   COPIED, TRANSFERRED, SOLD, DISTRIBUTED, OR OTHERWISE MADE        }
{   AVAILABLE TO OTHER INDIVIDUALS WITHOUT EXPRESS WRITTEN CONSENT   }
{   AND PERMISSION FROM DEVELOPER EXPRESS INC.                       }
{                                                                    }
{   CONSULT THE END USER LICENSE AGREEMENT FOR INFORMATION ON        }
{   ADDITIONAL RESTRICTIONS.                                         }
{                                                                    }
{********************************************************************}

unit dxThemeConsts;

{$I cxVer.inc}

interface

const

  THEMEMGR_VERSION = 1;     // increment if order of props changes or
                            // any props are deleted (will prevent loading
                            // of controlsets that use older version
{$IFDEF DELPHI11}
  {$EXTERNALSYM WM_THEMECHANGED}
{$ENDIF}
  WM_THEMECHANGED = $031A;

  TC_NONE = 0;

// Parts and states

// Class 'Window'
// Parts
  WP_CAPTION = 1;
  WP_SMALLCAPTION = 2;
  WP_MINCAPTION = 3;
  WP_SMALLMINCAPTION = 4;
  WP_MAXCAPTION = 5;
  WP_SMALLMAXCAPTION = 6;
  WP_FRAMELEFT = 7;
  WP_FRAMERIGHT = 8;
  WP_FRAMEBOTTOM = 9;
  WP_SMALLFRAMELEFT = 10;
  WP_SMALLFRAMERIGHT = 11;
  WP_SMALLFRAMEBOTTOM = 12;
  WP_SYSBUTTON = 13;
  WP_MDISYSBUTTON = 14;
  WP_MINBUTTON = 15;
  WP_MDIMINBUTTON = 16;
  WP_MAXBUTTON = 17;
  WP_CLOSEBUTTON = 18;
  WP_SMALLCLOSEBUTTON = 19;
  WP_MDICLOSEBUTTON = 20;
  WP_RESTOREBUTTON = 21;
  WP_MDIRESTOREBUTTON = 22;
  WP_HELPBUTTON = 23;
  WP_MDIHELPBUTTON = 24;
  WP_HORZSCROLL = 25;
  WP_HORZTHUMB = 26;
  WP_VERTSCROLL = 27;
  WP_VERTTHUMB = 28;
  WP_DIALOG = 29;
  WP_CAPTIONSIZINGTEMPLATE = 30;
  WP_SMALLCAPTIONSIZINGTEMPLATE = 31;
  WP_FRAMELEFTSIZINGTEMPLATE = 32;
  WP_SMALLFRAMELEFTSIZINGTEMPLATE = 33;
  WP_FRAMERIGHTSIZINGTEMPLATE = 34;
  WP_SMALLFRAMERIGHTSIZINGTEMPLATE = 35;
  WP_FRAMEBOTTOMSIZINGTEMPLATE = 36;
  WP_SMALLFRAMEBOTTOMSIZINGTEMPLATE = 37;
// States
  FS_ACTIVE = 1;
  FS_INACTIVE = 2;
  CS_ACTIVE = 1;
  CS_INACTIVE = 2;
  CS_DISABLED = 3;
  MXCS_ACTIVE = 1;
  MXCS_INACTIVE = 2;
  MXCS_DISABLED = 3;
  MNCS_ACTIVE = 1;
  MNCS_INACTIVE = 2;
  MNCS_DISABLED = 3;
  HSS_NORMAL = 1;
  HSS_HOT = 2;
  HSS_PUSHED = 3;
  HSS_DISABLED = 4;
  HTS_NORMAL = 1;
  HTS_HOT = 2;
  HTS_PUSHED = 3;
  HTS_DISABLED = 4;
  VSS_NORMAL = 1;
  VSS_HOT = 2;
  VSS_PUSHED = 3;
  VSS_DISABLED = 4;
  VTS_NORMAL = 1;
  VTS_HOT = 2;
  VTS_PUSHED = 3;
  VTS_DISABLED = 4;
  SBS_NORMAL = 1;
  SBS_HOT = 2;
  SBS_PUSHED = 3;
  SBS_DISABLED = 4;
  MINBS_NORMAL = 1;
  MINBS_HOT = 2;
  MINBS_PUSHED = 3;
  MINBS_DISABLED = 4;
  MAXBS_NORMAL = 1;
  MAXBS_HOT = 2;
  MAXBS_PUSHED = 3;
  MAXBS_DISABLED = 4;
  RBS_NORMAL = 1;
  RBS_HOT = 2;
  RBS_PUSHED = 3;
  RBS_DISABLED = 4;
  HBS_NORMAL = 1;
  HBS_HOT = 2;
  HBS_PUSHED = 3;
  HBS_DISABLED = 4;
  CBS_NORMAL = 1;
  CBS_HOT = 2;
  CBS_PUSHED = 3;
  CBS_DISABLED = 4;

// Class 'Button'
// Parts
  BP_PUSHBUTTON = 1;
  BP_RADIOBUTTON = 2;
  BP_CHECKBOX = 3;
  BP_GROUPBOX = 4;
  BP_USERBUTTON = 5;
  BP_COMMANDLINK = 6;
  BP_COMMANDLINKGLYPH = 7;
// States
  PBS_NORMAL = 1;
  PBS_HOT = 2;
  PBS_PRESSED = 3;
  PBS_DISABLED = 4;
  PBS_DEFAULTED = 5;
  RBS_UNCHECKEDNORMAL = 1;
  RBS_UNCHECKEDHOT = 2;
  RBS_UNCHECKEDPRESSED = 3;
  RBS_UNCHECKEDDISABLED = 4;
  RBS_CHECKEDNORMAL = 5;
  RBS_CHECKEDHOT = 6;
  RBS_CHECKEDPRESSED = 7;
  RBS_CHECKEDDISABLED = 8;
  CBS_UNCHECKEDNORMAL = 1;
  CBS_UNCHECKEDHOT = 2;
  CBS_UNCHECKEDPRESSED = 3;
  CBS_UNCHECKEDDISABLED = 4;
  CBS_CHECKEDNORMAL = 5;
  CBS_CHECKEDHOT = 6;
  CBS_CHECKEDPRESSED = 7;
  CBS_CHECKEDDISABLED = 8;
  CBS_MIXEDNORMAL = 9;
  CBS_MIXEDHOT = 10;
  CBS_MIXEDPRESSED = 11;
  CBS_MIXEDDISABLED = 12;
  GBS_NORMAL = 1;
  GBS_DISABLED = 2;

// Class 'Rebar'
// Parts
  RP_GRIPPER = 1;
  RP_GRIPPERVERT = 2;
  RP_BAND = 3;
  RP_CHEVRON = 4;
  RP_CHEVRONVERT = 5;
// States
  CHEVS_NORMAL = 1;
  CHEVS_HOT = 2;
  CHEVS_PRESSED = 3;

// Class 'Toolbar'
// Parts
  TP_BUTTON = 1;
  TP_DROPDOWNBUTTON = 2;
  TP_SPLITBUTTON = 3;
  TP_SPLITBUTTONDROPDOWN = 4;
  TP_SEPARATOR = 5;
  TP_SEPARATORVERT = 6;
// States
  TS_NORMAL = 1;
  TS_HOT = 2;
  TS_PRESSED = 3;
  TS_DISABLED = 4;
  TS_CHECKED = 5;
  TS_HOTCHECKED = 6;
// Class 'Status'
// Parts
  SP_PANE = 1;
  SP_GRIPPERPANE = 2;
  SP_GRIPPER = 3;

// Class 'Menu'
// Parts
  MP_MENUITEM = 1;
  MP_MENUDROPDOWN = 2;
  MP_MENUBARITEM = 3;
  MP_MENUBARDROPDOWN = 4;
  MP_CHEVRON = 5;
  MP_SEPARATOR = 6;
// States
  MS_NORMAL = 1;
  MS_SELECTED = 2;
  MS_DEMOTED = 3;

// Class 'ListBox'
// Parts
  LBCP_BORDER_HSCROLL = 1;
  LBCP_BORDER_HVSCROLL = 2;
  LBCP_BORDER_NOSCROLL = 3;
  LBCP_BORDER_VSCROLL = 4;
  LBCP_ITEM = 5;
// States
  LBPSN_NORMAL = 1;
  LBPSN_FOCUSED = 2;
  LBPSN_HOT = 3;
  LBPSN_DISABLED = 4;

// Class 'ListView'
// Parts
  LVP_LISTITEM = 1;
  LVP_LISTGROUP = 2;
  LVP_LISTDETAIL = 3;
  LVP_LISTSORTEDDETAIL = 4;
  LVP_EMPTYTEXT = 5;
// States
  LIS_NORMAL = 1;
  LIS_HOT = 2;
  LIS_SELECTED = 3;
  LIS_DISABLED = 4;
  LIS_SELECTEDNOTFOCUS = 5;
  { For Windows >= Vista }
  LIS_HOTSELECTED = 6;

// Class 'Header'
// Parts
  HP_HEADERITEM = 1;
  HP_HEADERITEMLEFT = 2;
  HP_HEADERITEMRIGHT = 3;
  HP_HEADERSORTARROW = 4;
// States
  HIS_NORMAL = 1;
  HIS_HOT = 2;
  HIS_PRESSED = 3;
  HILS_NORMAL = 1;
  HILS_HOT = 2;
  HILS_PRESSED = 3;
  HIRS_NORMAL = 1;
  HIRS_HOT = 2;
  HIRS_PRESSED = 3;
  HSAS_SORTEDUP = 1;
  HSAS_SORTEDDOWN = 2;

// Class 'Progress'
// Parts
  PP_BAR = 1;
  PP_BARVERT = 2;
  PP_CHUNK = 3;
  PP_CHUNKVERT = 4;
  { For Windows >= Vista }
  PP_FILL = 5;
  PP_FILLVERT = 6;
  PP_PULSEOVERLAY = 7;
  PP_MOVEOVERLAY = 8;
  PP_PULSEOVERLAYVERT = 9;
  PP_MOVEOVERLAYVERT = 10;
  PP_TRANSPARENTBAR = 11;
  PP_TRANSPARENTBARVERT = 12;

// Class 'Tab'
// Parts
  TABP_TABITEM = 1;
  TABP_TABITEMLEFTEDGE = 2;
  TABP_TABITEMRIGHTEDGE = 3;
  TABP_TABITEMBOTHEDGE = 4;
  TABP_TOPTABITEM = 5;
  TABP_TOPTABITEMLEFTEDGE = 6;
  TABP_TOPTABITEMRIGHTEDGE = 7;
  TABP_TOPTABITEMBOTHEDGE = 8;
  TABP_PANE = 9;
  TABP_BODY = 10;
// States
  TIS_NORMAL = 1;
  TIS_HOT = 2;
  TIS_SELECTED = 3;
  TIS_DISABLED = 4;
  TIS_FOCUSED = 5;
  TILES_NORMAL = 1;
  TILES_HOT = 2;
  TILES_SELECTED = 3;
  TILES_DISABLED = 4;
  TILES_FOCUSED = 5;
  TIRES_NORMAL = 1;
  TIRES_HOT = 2;
  TIRES_SELECTED = 3;
  TIRES_DISABLED = 4;
  TIRES_FOCUSED = 5;
  TIBES_NORMAL = 1;
  TIBES_HOT = 2;
  TIBES_SELECTED = 3;
  TIBES_DISABLED = 4;
  TIBES_FOCUSED = 5;
  TTIS_NORMAL = 1;
  TTIS_HOT = 2;
  TTIS_SELECTED = 3;
  TTIS_DISABLED = 4;
  TTIS_FOCUSED = 5;
  TTILES_NORMAL = 1;
  TTILES_HOT = 2;
  TTILES_SELECTED = 3;
  TTILES_DISABLED = 4;
  TTILES_FOCUSED = 5;
  TTIRES_NORMAL = 1;
  TTIRES_HOT = 2;
  TTIRES_SELECTED = 3;
  TTIRES_DISABLED = 4;
  TTIRES_FOCUSED = 5;
  TTIBES_NORMAL = 1;
  TTIBES_HOT = 2;
  TTIBES_SELECTED = 3;
  TTIBES_DISABLED = 4;
  TTIBES_FOCUSED = 5;

// Class 'Trackbar'
// Parts
  TKP_TRACK = 1;
  TKP_TRACKVERT = 2;
  TKP_THUMB = 3;
  TKP_THUMBBOTTOM = 4;
  TKP_THUMBTOP = 5;
  TKP_THUMBVERT = 6;
  TKP_THUMBLEFT = 7;
  TKP_THUMBRIGHT = 8;
  TKP_TICS = 9;
  TKP_TICSVERT = 10;
// States
  TKS_NORMAL = 1;
  TRS_NORMAL = 1;
  TRVS_NORMAL = 1;
  TUS_NORMAL = 1;
  TUS_HOT = 2;
  TUS_PRESSED = 3;
  TUS_FOCUSED = 4;
  TUS_DISABLED = 5;
  TUBS_NORMAL = 1;
  TUBS_HOT = 2;
  TUBS_PRESSED = 3;
  TUBS_FOCUSED = 4;
  TUBS_DISABLED = 5;
  TUTS_NORMAL = 1;
  TUTS_HOT = 2;
  TUTS_PRESSED = 3;
  TUTS_FOCUSED = 4;
  TUTS_DISABLED = 5;
  TUVS_NORMAL = 1;
  TUVS_HOT = 2;
  TUVS_PRESSED = 3;
  TUVS_FOCUSED = 4;
  TUVS_DISABLED = 5;
  TUVLS_NORMAL = 1;
  TUVLS_HOT = 2;
  TUVLS_PRESSED = 3;
  TUVLS_FOCUSED = 4;
  TUVLS_DISABLED = 5;
  TUVRS_NORMAL = 1;
  TUVRS_HOT = 2;
  TUVRS_PRESSED = 3;
  TUVRS_FOCUSED = 4;
  TUVRS_DISABLED = 5;
  TSS_NORMAL = 1;
  TSVS_NORMAL = 1;

// Class 'Tooltips'
// Parts
  TTP_STANDARD = 1;
  TTP_STANDARDTITLE = 2;
  TTP_BALLOON = 3;
  TTP_BALLOONTITLE = 4;
  TTP_CLOSE = 5;
// States
  TTCS_NORMAL = 1;
  TTCS_HOT = 2;
  TTCS_PRESSED = 3;
  TTSS_NORMAL = 1;
  TTSS_LINK = 2;
  TTBS_NORMAL = 1;
  TTBS_LINK = 2;

// Class 'TreeView'
// Parts
  TVP_TREEITEM = 1;
  TVP_GLYPH = 2;
  TVP_BRANCH = 3;
// States
  TREIS_NORMAL = 1;
  TREIS_HOT = 2;
  TREIS_SELECTED = 3;
  TREIS_DISABLED = 4;
  TREIS_SELECTEDNOTFOCUS = 5;
  GLPS_CLOSED = 1;
  GLPS_OPENED = 2;

// Class 'Spin'
// Parts
  SPNP_UP = 1;
  SPNP_DOWN = 2;
  SPNP_UPHORZ = 3;
  SPNP_DOWNHORZ = 4;
// States
  UPS_NORMAL = 1;
  UPS_HOT = 2;
  UPS_PRESSED = 3;
  UPS_DISABLED = 4;
  DNS_NORMAL = 1;
  DNS_HOT = 2;
  DNS_PRESSED = 3;
  DNS_DISABLED = 4;
  UPHZS_NORMAL = 1;
  UPHZS_HOT = 2;
  UPHZS_PRESSED = 3;
  UPHZS_DISABLED = 4;
  DNHZS_NORMAL = 1;
  DNHZS_HOT = 2;
  DNHZS_PRESSED = 3;
  DNHZS_DISABLED = 4;

// Class 'Page'
// Parts
  PGRP_UP = 1;
  PGRP_DOWN = 2;
  PGRP_UPHORZ = 3;
  PGRP_DOWNHORZ = 4;

// Class 'Scrollbar'
// Parts
  SBP_ARROWBTN = 1;
  SBP_THUMBBTNHORZ = 2;
  SBP_THUMBBTNVERT = 3;
  SBP_LOWERTRACKHORZ = 4;
  SBP_UPPERTRACKHORZ = 5;
  SBP_LOWERTRACKVERT = 6;
  SBP_UPPERTRACKVERT = 7;
  SBP_GRIPPERHORZ = 8;
  SBP_GRIPPERVERT = 9;
  SBP_SIZEBOX = 10;
// States
  ABS_UPNORMAL = 1;
  ABS_UPHOT = 2;
  ABS_UPPRESSED = 3;
  ABS_UPDISABLED = 4;
  ABS_DOWNNORMAL = 5;
  ABS_DOWNHOT = 6;
  ABS_DOWNPRESSED = 7;
  ABS_DOWNDISABLED = 8;
  ABS_LEFTNORMAL = 9;
  ABS_LEFTHOT = 10;
  ABS_LEFTPRESSED = 11;
  ABS_LEFTDISABLED = 12;
  ABS_RIGHTNORMAL = 13;
  ABS_RIGHTHOT = 14;
  ABS_RIGHTPRESSED = 15;
  ABS_RIGHTDISABLED = 16;
  SCRBS_NORMAL = 1;
  SCRBS_HOT = 2;
  SCRBS_PRESSED = 3;
  SCRBS_DISABLED = 4;
  SZB_RIGHTALIGN = 1;
  SZB_LEFTALIGN = 2;

// Class 'Edit'
// Parts
  EP_EDITTEXT = 1;
  EP_CARET = 2;
  { For Windows >= Vista }
  EP_BACKGROUND = 3;
  EP_PASSWORD = 4;
  EP_BACKGROUNDWITHBORDER = 5;
  EP_EDITBORDER_NOSCROLL = 6;
  EP_EDITBORDER_HSCROLL = 7;
  EP_EDITBORDER_VSCROLL = 8;
  EP_EDITBORDER_HVSCROLL = 9;
// States
  ETS_NORMAL = 1;
  ETS_HOT = 2;
  ETS_SELECTED = 3;
  ETS_DISABLED = 4;
  ETS_FOCUSED = 5;
  ETS_READONLY = 6;
  ETS_ASSIST = 7;

// Class 'ComboBox'
// Parts
  CP_DROPDOWNBUTTON = 1;
  { For Windows >= Vista }
  CP_BACKGROUND = 2;
  CP_TRANSPARENTBACKGROUND = 3;
  CP_BORDER = 4;
  CP_READONLY = 5;
  CP_DROPDOWNBUTTONRIGHT = 6;
  CP_DROPDOWNBUTTONLEFT = 7;
  CP_CUEBANNER = 8;
// States
  CBXS_NORMAL = 1;
  CBXS_HOT = 2;
  CBXS_PRESSED = 3;
  CBXS_DISABLED = 4;

// Class 'Taskbar Clock'
// Parts
  CLP_TIME = 1;
// States
  CLS_NORMAL = 1;

// Class 'Tray Notify'
// Parts
  TNP_BACKGROUND = 1;
  TNP_ANIMBACKGROUND = 2;

// Class 'TaskBar'
// Parts
  TBP_BACKGROUNDBOTTOM = 1;
  TBP_BACKGROUNDRIGHT = 2;
  TBP_BACKGROUNDTOP = 3;
  TBP_BACKGROUNDLEFT = 4;
  TBP_SIZINGBARBOTTOM = 5;
  TBP_SIZINGBARRIGHT = 6;
  TBP_SIZINGBARTOP = 7;
  TBP_SIZINGBARLEFT = 8;

// Class 'TaskBand'
// Parts
  TDP_GROUPCOUNT = 1;
  TDP_FLASHBUTTON = 2;
  TDP_FLASHBUTTONGROUPMENU = 3;

// Class 'StartPanel'
// Parts
  SPP_USERPANE = 1;
  SPP_MOREPROGRAMS = 2;
  SPP_MOREPROGRAMSARROW = 3;
  SPP_PROGLIST = 4;
  SPP_PROGLISTSEPARATOR = 5;
  SPP_PLACESLIST = 6;
  SPP_PLACESLISTSEPARATOR = 7;
  SPP_LOGOFF = 8;
  SPP_LOGOFFBUTTONS = 9;
  SPP_USERPICTURE = 10;
  SPP_PREVIEW = 11;
// States
  SPS_NORMAL = 1;
  SPS_HOT = 2;
  SPS_PRESSED = 3;
  SPLS_NORMAL = 1;
  SPLS_HOT = 2;
  SPLS_PRESSED = 3;

// Class 'ExplorerBar'
// Parts
  EBP_HEADERBACKGROUND = 1;
  EBP_HEADERCLOSE = 2;
  EBP_HEADERPIN = 3;
  EBP_IEBARMENU = 4;
  EBP_NORMALGROUPBACKGROUND = 5;
  EBP_NORMALGROUPCOLLAPSE = 6;
  EBP_NORMALGROUPEXPAND = 7;
  EBP_NORMALGROUPHEAD = 8;
  EBP_SPECIALGROUPBACKGROUND = 9;
  EBP_SPECIALGROUPCOLLAPSE = 10;
  EBP_SPECIALGROUPEXPAND = 11;
  EBP_SPECIALGROUPHEAD = 12;
// States
  EBHC_NORMAL = 1;
  EBHC_HOT = 2;
  EBHC_PRESSED = 3;
  EBHP_NORMAL = 1;
  EBHP_HOT = 2;
  EBHP_PRESSED = 3;
  EBHP_SELECTEDNORMAL = 4;
  EBHP_SELECTEDHOT = 5;
  EBHP_SELECTEDPRESSED = 6;
  EBM_NORMAL = 1;
  EBM_HOT = 2;
  EBM_PRESSED = 3;
  EBNGC_NORMAL = 1;
  EBNGC_HOT = 2;
  EBNGC_PRESSED = 3;
  EBNGE_NORMAL = 1;
  EBNGE_HOT = 2;
  EBNGE_PRESSED = 3;
  EBSGC_NORMAL = 1;
  EBSGC_HOT = 2;
  EBSGC_PRESSED = 3;
  EBSGE_NORMAL = 1;
  EBSGE_HOT = 2;
  EBSGE_PRESSED = 3;

// Class 'TaskBand'
// Parts
  MDP_NEWAPPBUTTON = 1;
  MDP_SEPERATOR = 2;
// States
  MDS_NORMAL = 1;
  MDS_HOT = 2;
  MDS_PRESSED = 3;
  MDS_DISABLED = 4;
  MDS_CHECKED = 5;
  MDS_HOTCHECKED = 6;

// Class 'Navigation' (Introduced in Vista)
// Parts
  NAV_BACKBUTTON = 1;
  NAV_FORWARDBUTTON = 2;
  NAV_MENUBUTTON = 3;
// States
  NAV_BB_NORMAL = 1;
  NAV_BB_HOT = 2;
  NAV_BB_PRESSED = 3;
  NAV_BB_DISABLED = 4;
  NAV_FB_NORMAL = 1;
  NAV_FB_HOT = 2;
  NAV_FB_PRESSED = 3;
  NAV_FB_DISABLED = 4;
  NAV_MB_NORMAL = 1;
  NAV_MB_HOT = 2;
  NAV_MB_PRESSED = 3;
  NAV_MB_DISABLED = 4;

// Consts (part of UxTheme API)

  BT_IMAGEFILE = 0;
  BT_BORDERFILL = 1;
  BT_NONE = 2;

  IL_VERTICAL = 0;
  IL_HORIZONTAL = 1;

  BT_RECT = 0;
  BT_ROUNDRECT = 1;
  BT_ELLIPSE = 2;

  FT_SOLID = 0;
  FT_VERTGRADIENT = 1;
  FT_HORZGRADIENT = 2;
  FT_RADIALGRADIENT = 3;
  FT_TILEIMAGE = 4;

  ST_TRUESIZE = 0;
  ST_STRETCH = 1;
  ST_TILE = 2;

  HA_LEFT = 0;
  HA_CENTER = 1;
  HA_RIGHT = 2;

  CA_LEFT = 0;
  CA_CENTER = 1;
  CA_RIGHT = 2;

  VA_TOP = 0;
  VA_CENTER = 1;
  VA_BOTTOM = 2;

  OT_TOPLEFT = 0;
  OT_TOPRIGHT = 1;
  OT_TOPMIDDLE = 2;
  OT_BOTTOMLEFT = 3;
  OT_BOTTOMRIGHT = 4;
  OT_BOTTOMMIDDLE = 5;
  OT_MIDDLELEFT = 6;
  OT_MIDDLERIGHT = 7;
  OT_LEFTOFCAPTION = 8;
  OT_RIGHTOFCAPTION = 9;
  OT_LEFTOFLASTBUTTON = 10;
  OT_RIGHTOFLASTBUTTON = 11;
  OT_ABOVELASTBUTTON = 12;
  OT_BELOWLASTBUTTON = 13;

  ICE_NONE = 0;
  ICE_GLOW = 1;
  ICE_SHADOW = 2;
  ICE_PULSE = 3;
  ICE_ALPHA = 4;

  TST_NONE = 0;
  TST_SINGLE = 1;
  TST_CONTINUOUS = 2;

  GT_NONE = 0;
  GT_IMAGEGLYPH = 1;
  GT_FONTGLYPH = 2;

  IST_NONE = 0;
  IST_SIZE = 1;
  IST_DPI = 2;

  TSST_NONE = 0;
  TSST_SIZE = 1;
  TSST_DPI = 2;

  GFST_NONE = 0;
  GFST_SIZE = 1;
  GFST_DPI = 2;

{$IFDEF DELPHI11}
  {$EXTERNALSYM MPI_NORMAL}
  {$EXTERNALSYM MPI_HOT}
  {$EXTERNALSYM MPI_DISABLED}
  {$EXTERNALSYM MPI_DISABLEDHOT}

  {$EXTERNALSYM MBI_NORMAL}
  {$EXTERNALSYM MBI_HOT}
  {$EXTERNALSYM MBI_PUSHED}
  {$EXTERNALSYM MBI_DISABLED}
  {$EXTERNALSYM MBI_DISABLEDHOT}
  {$EXTERNALSYM MBI_DISABLEDPUSHED}

  {$EXTERNALSYM MC_CHECKMARKNORMAL}
  {$EXTERNALSYM MC_CHECKMARKDISABLED}
  {$EXTERNALSYM MC_BULLETNORMAL}
  {$EXTERNALSYM MC_BULLETDISABLED}

  {$EXTERNALSYM MENU_MENUITEM_TMSCHEMA}
  {$EXTERNALSYM MENU_MENUDROPDOWN_TMSCHEMA}
  {$EXTERNALSYM MENU_MENUBARITEM_TMSCHEMA}
  {$EXTERNALSYM MENU_MENUBARDROPDOWN_TMSCHEMA}
  {$EXTERNALSYM MENU_CHEVRON_TMSCHEMA}
  {$EXTERNALSYM MENU_SEPARATOR_TMSCHEMA}
  {$EXTERNALSYM MENU_BARBACKGROUND}
  {$EXTERNALSYM MENU_BARITEM}
  {$EXTERNALSYM MENU_POPUPBACKGROUND}
  {$EXTERNALSYM MENU_POPUPBORDERS}
  {$EXTERNALSYM MENU_POPUPCHECK}
  {$EXTERNALSYM MENU_POPUPCHECKBACKGROUND}
  {$EXTERNALSYM MENU_POPUPGUTTER}
  {$EXTERNALSYM MENU_POPUPITEM}
  {$EXTERNALSYM MENU_POPUPSEPARATOR}
  {$EXTERNALSYM MENU_POPUPSUBMENU}
  {$EXTERNALSYM MENU_SYSTEMCLOSE}
  {$EXTERNALSYM MENU_SYSTEMMAXIMIZE}
  {$EXTERNALSYM MENU_SYSTEMMINIMIZE}
  {$EXTERNALSYM MENU_SYSTEMRESTORE}

  {$EXTERNALSYM MCB_DISABLED}
  {$EXTERNALSYM MCB_NORMAL}
  {$EXTERNALSYM MCB_BITMAP}

  {$EXTERNALSYM MSM_NORMAL}
  {$EXTERNALSYM MSM_DISABLED}
{$ENDIF}

  MPI_NORMAL = 1;
  MPI_HOT = 2;
  MPI_DISABLED = 3;
  MPI_DISABLEDHOT = 4;

  MBI_NORMAL = 1;
  MBI_HOT = 2;
  MBI_PUSHED = 3;
  MBI_DISABLED = 4;
  MBI_DISABLEDHOT = 5;
  MBI_DISABLEDPUSHED = 6;

  MC_CHECKMARKNORMAL = 1;
  MC_CHECKMARKDISABLED = 2;
  MC_BULLETNORMAL = 3;
  MC_BULLETDISABLED = 4;

  MENU_MENUITEM_TMSCHEMA     = 1;
  MENU_MENUDROPDOWN_TMSCHEMA     = 2;
  MENU_MENUBARITEM_TMSCHEMA     = 3;
  MENU_MENUBARDROPDOWN_TMSCHEMA     = 4;
  MENU_CHEVRON_TMSCHEMA     = 5;
  MENU_SEPARATOR_TMSCHEMA     = 6;
  MENU_BARBACKGROUND     = 7;
  MENU_BARITEM     = 8;
  MENU_POPUPBACKGROUND     = 9;
  MENU_POPUPBORDERS     = 10;
  MENU_POPUPCHECK     = 11;
  MENU_POPUPCHECKBACKGROUND     = 12;
  MENU_POPUPGUTTER     = 13;
  MENU_POPUPITEM     = 14;
  MENU_POPUPSEPARATOR     = 15;
  MENU_POPUPSUBMENU     = 16;
  MENU_SYSTEMCLOSE     = 17;
  MENU_SYSTEMMAXIMIZE     = 18;
  MENU_SYSTEMMINIMIZE     = 19;
  MENU_SYSTEMRESTORE     = 20;

  MCB_DISABLED     = 1;
  MCB_NORMAL     = 2;
  MCB_BITMAP     = 3;

  MSM_NORMAL     = 1;
  MSM_DISABLED     = 2;

// Properties used by UxTheme rendering and controls (part of UxTheme API)

// primitive types
  TMT_STRING = 201;
  TMT_INT = 202;
  TMT_BOOL = 203;
  TMT_COLOR = 204;
  TMT_MARGINS = 205;
  TMT_FILENAME = 206;
  TMT_SIZE = 207;
  TMT_POSITION = 208;
  TMT_RECT = 209;
  TMT_FONT = 210;
  TMT_INTLIST = 211;

// special misc. properties
  TMT_COLORSCHEMES = 401;
  TMT_SIZES = 402;
  TMT_CHARSET = 403;

// [documentation] properties
  TMT_DISPLAYNAME = 601;
  TMT_TOOLTIP = 602;
  TMT_COMPANY = 603;
  TMT_AUTHOR = 604;
  TMT_COPYRIGHT = 605;
  TMT_URL = 606;
  TMT_VERSION = 607;
  TMT_DESCRIPTION = 608;

// TODO
//  {$IFNDEF BCB}
  TMT_FIRST_RCSTRING_NAME = TMT_DISPLAYNAME;
  TMT_LAST_RCSTRING_NAME = TMT_DESCRIPTION;
//  {$ENDIF BCB}

// theme metrics: fonts
  TMT_CAPTIONFONT = 801;
  TMT_SMALLCAPTIONFONT = 802;
  TMT_MENUFONT = 803;
  TMT_STATUSFONT = 804;
  TMT_MSGBOXFONT = 805;
  TMT_ICONTITLEFONT = 806;

// TODO
//  {$IFNDEF BCB}
  TMT_FIRSTFONT = TMT_CAPTIONFONT;
  TMT_LASTFONT = TMT_ICONTITLEFONT;
//  {$ENDIF BCB}

// theme metrics: bools
  TMT_FLATMENUS = 1001;

// TODO
//  {$IFNDEF BCB}
  TMT_FIRSTBOOL = TMT_FLATMENUS;
  TMT_LASTBOOL = TMT_FLATMENUS;
//  {$ENDIF BCB}

// theme metrics: sizes
  TMT_SIZINGBORDERWIDTH = 1201;
  TMT_SCROLLBARWIDTH = 1202;
  TMT_SCROLLBARHEIGHT = 1203;
  TMT_CAPTIONBARWIDTH = 1204;
  TMT_CAPTIONBARHEIGHT = 1205;
  TMT_SMCAPTIONBARWIDTH = 1206;
  TMT_SMCAPTIONBARHEIGHT = 1207;
  TMT_MENUBARWIDTH = 1208;
  TMT_MENUBARHEIGHT = 1209;

// TODO
//{$IFNDEF BCB}
  TMT_FIRSTSIZE = TMT_SIZINGBORDERWIDTH;
  TMT_LASTSIZE = TMT_MENUBARHEIGHT;
//{$ENDIF BCB}

// theme metrics: ints
  TMT_MINCOLORDEPTH = 1301;

// TODO
//  {$IFNDEF BCB}
  TMT_FIRSTINT = TMT_MINCOLORDEPTH;
  TMT_LASTINT = TMT_MINCOLORDEPTH;
//  {$ENDIF BCB}

// theme metrics: strings
  TMT_CSSNAME = 1401;
  TMT_XMLNAME = 1402;

// TODO
//  {$IFNDEF BCB}
  TMT_FIRSTSTRING = TMT_CSSNAME;
  TMT_LASTSTRING = TMT_XMLNAME;
//  {$ENDIF BCB}

// theme metrics: colors
  TMT_SCROLLBAR = 1601;
  TMT_BACKGROUND = 1602;
  TMT_ACTIVECAPTION = 1603;
  TMT_INACTIVECAPTION = 1604;
  TMT_MENU = 1605;
  TMT_WINDOW = 1606;
  TMT_WINDOWFRAME = 1607;
  TMT_MENUTEXT = 1608;
  TMT_WINDOWTEXT = 1609;
  TMT_CAPTIONTEXT = 1610;
  TMT_ACTIVEBORDER = 1611;
  TMT_INACTIVEBORDER = 1612;
  TMT_APPWORKSPACE = 1613;
  TMT_HIGHLIGHT = 1614;
  TMT_HIGHLIGHTTEXT = 1615;
  TMT_BTNFACE = 1616;
  TMT_BTNSHADOW = 1617;
  TMT_GRAYTEXT = 1618;
  TMT_BTNTEXT = 1619;
  TMT_INACTIVECAPTIONTEXT = 1620;
  TMT_BTNHIGHLIGHT = 1621;
  TMT_DKSHADOW3D = 1622;
  TMT_LIGHT3D = 1623;
  TMT_INFOTEXT = 1624;
  TMT_INFOBK = 1625;
  TMT_BUTTONALTERNATEFACE = 1626;
  TMT_HOTTRACKING = 1627;
  TMT_GRADIENTACTIVECAPTION = 1628;
  TMT_GRADIENTINACTIVECAPTION = 1629;
  TMT_MENUHILIGHT = 1630;
  TMT_MENUBAR = 1631;

// TODO
//  {$IFNDEF BCB}
  TMT_FIRSTCOLOR = TMT_SCROLLBAR;
  TMT_LASTCOLOR = TMT_MENUBAR;
//  {$ENDIF BCB}

// hue substitutions
  TMT_FROMHUE1 = 1801;
  TMT_FROMHUE2 = 1802;
  TMT_FROMHUE3 = 1803;
  TMT_FROMHUE4 = 1804;
  TMT_FROMHUE5 = 1805;
  TMT_TOHUE1 = 1806;
  TMT_TOHUE2 = 1807;
  TMT_TOHUE3 = 1808;
  TMT_TOHUE4 = 1809;
  TMT_TOHUE5 = 1810;

// color substitutions
  TMT_FROMCOLOR1 = 2001;
  TMT_FROMCOLOR2 = 2002;
  TMT_FROMCOLOR3 = 2003;
  TMT_FROMCOLOR4 = 2004;
  TMT_FROMCOLOR5 = 2005;
  TMT_TOCOLOR1 = 2006;
  TMT_TOCOLOR2 = 2007;
  TMT_TOCOLOR3 = 2008;
  TMT_TOCOLOR4 = 2009;
  TMT_TOCOLOR5 = 2010;

// rendering BOOL properties
  TMT_TRANSPARENT = 2201;
  TMT_AUTOSIZE = 2202;
  TMT_BORDERONLY = 2203;
  TMT_COMPOSITED = 2204;
  TMT_BGFILL = 2205;
  TMT_GLYPHTRANSPARENT = 2206;
  TMT_GLYPHONLY = 2207;
  TMT_ALWAYSSHOWSIZINGBAR = 2208;
  TMT_MIRRORIMAGE = 2209;
  TMT_UNIFORMSIZING = 2210;
  TMT_INTEGRALSIZING = 2211;
  TMT_SOURCEGROW = 2212;
  TMT_SOURCESHRINK = 2213;

// rendering INT properties
  TMT_IMAGECOUNT = 2401;
  TMT_ALPHALEVEL = 2402;
  TMT_BORDERSIZE = 2403;
  TMT_ROUNDCORNERWIDTH = 2404;
  TMT_ROUNDCORNERHEIGHT = 2405;
  TMT_GRADIENTRATIO1 = 2406;
  TMT_GRADIENTRATIO2 = 2407;
  TMT_GRADIENTRATIO3 = 2408;
  TMT_GRADIENTRATIO4 = 2409;
  TMT_GRADIENTRATIO5 = 2410;
  TMT_PROGRESSCHUNKSIZE = 2411;
  TMT_PROGRESSSPACESIZE = 2412;
  TMT_SATURATION = 2413;
  TMT_TEXTBORDERSIZE = 2414;
  TMT_ALPHATHRESHOLD = 2415;
  TMT_WIDTH = 2416;
  TMT_HEIGHT = 2417;
  TMT_GLYPHINDEX = 2418;
  TMT_TRUESIZESTRETCHMARK = 2419;
  TMT_MINDPI1 = 2420;
  TMT_MINDPI2 = 2421;
  TMT_MINDPI3 = 2422;
  TMT_MINDPI4 = 2423;
  TMT_MINDPI5 = 2424;

// rendering FONT properties
  TMT_GLYPHFONT = 2601;

// rendering INTLIST properties
// start with 2801 (from smallest to largest)

// rendering FILENAME properties
  TMT_IMAGEFILE = 3001;
  TMT_IMAGEFILE1 = 3002;
  TMT_IMAGEFILE2 = 3003;
  TMT_IMAGEFILE3 = 3004;
  TMT_IMAGEFILE4 = 3005;
  TMT_IMAGEFILE5 = 3006;
  TMT_STOCKIMAGEFILE = 3007;
  TMT_GLYPHIMAGEFILE = 3008;

// rendering STRING properties
  TMT_TEXT = 3201;

// rendering POSITION (x and y values) properties
  TMT_OFFSET = 3401;
  TMT_TEXTSHADOWOFFSET = 3402;
  TMT_MINSIZE = 3403;
  TMT_MINSIZE1 = 3404;
  TMT_MINSIZE2 = 3405;
  TMT_MINSIZE3 = 3406;
  TMT_MINSIZE4 = 3407;
  TMT_MINSIZE5 = 3408;
  TMT_NORMALSIZE = 3409;

// rendering MARGIN properties
  TMT_SIZINGMARGINS = 3601;
  TMT_CONTENTMARGINS = 3602;
  TMT_CAPTIONMARGINS = 3603;

// rendering COLOR properties
  TMT_BORDERCOLOR = 3801;
  TMT_FILLCOLOR = 3802;
  TMT_TEXTCOLOR = 3803;
  TMT_EDGELIGHTCOLOR = 3804;
  TMT_EDGEHIGHLIGHTCOLOR = 3805;
  TMT_EDGESHADOWCOLOR = 3806;
  TMT_EDGEDKSHADOWCOLOR = 3807;
  TMT_EDGEFILLCOLOR = 3808;
  TMT_TRANSPARENTCOLOR = 3809;
  TMT_GRADIENTCOLOR1 = 3810;
  TMT_GRADIENTCOLOR2 = 3811;
  TMT_GRADIENTCOLOR3 = 3812;
  TMT_GRADIENTCOLOR4 = 3813;
  TMT_GRADIENTCOLOR5 = 3814;
  TMT_SHADOWCOLOR = 3815;
  TMT_GLOWCOLOR = 3816;
  TMT_TEXTBORDERCOLOR = 3817;
  TMT_TEXTSHADOWCOLOR = 3818;
  TMT_GLYPHTEXTCOLOR = 3819;
  TMT_GLYPHTRANSPARENTCOLOR = 3820;
  TMT_FILLCOLORHINT = 3821;
  TMT_BORDERCOLORHINT = 3822;
  TMT_ACCENTCOLORHINT = 3823;

// rendering enum properties (must be declared in TM_ENUM section above)
  TMT_BGTYPE = 4001;
  TMT_BORDERTYPE = 4002;
  TMT_FILLTYPE = 4003;
  TMT_SIZINGTYPE = 4004;
  TMT_HALIGN = 4005;
  TMT_CONTENTALIGNMENT = 4006;
  TMT_VALIGN = 4007;
  TMT_OFFSETTYPE = 4008;
  TMT_ICONEFFECT = 4009;
  TMT_TEXTSHADOWTYPE = 4010;
  TMT_IMAGELAYOUT = 4011;
  TMT_GLYPHTYPE = 4012;
  TMT_IMAGESELECTTYPE = 4013;
  TMT_GLYPHFONTSIZINGTYPE = 4014;
  TMT_TRUESIZESCALINGTYPE = 4015;

// custom properties (used only by controls/shell)
  TMT_USERPICTURE = 5001;
  TMT_DEFAULTPANESIZE = 5002;
  TMT_BLENDCOLOR = 5003;

// DrawThemeText() flags
  DTT_GRAYED = $1;
  {$EXTERNALSYM DTT_GRAYED}

// HitTestThemeBackground(), HitTestThemeBackgroundRegion() flags
  HTTB_BACKGROUNDSEG = $0;
  {$EXTERNALSYM HTTB_BACKGROUNDSEG}

// Fixed border hit test option
  HTTB_FIXEDBORDER = $2;
  {$EXTERNALSYM HTTB_FIXEDBORDER}

// Caption hit test option
  HTTB_CAPTION = $4;
  {$EXTERNALSYM HTTB_CAPTION}

// Resizing border hit test flags
  HTTB_RESIZINGBORDER_LEFT = $10;
  {$EXTERNALSYM HTTB_RESIZINGBORDER_LEFT}
  HTTB_RESIZINGBORDER_TOP = $20;
  {$EXTERNALSYM HTTB_RESIZINGBORDER_TOP}
  HTTB_RESIZINGBORDER_RIGHT = $40;
  {$EXTERNALSYM HTTB_RESIZINGBORDER_RIGHT}
  HTTB_RESIZINGBORDER_BOTTOM = $80;
  {$EXTERNALSYM HTTB_RESIZINGBORDER_BOTTOM}
  HTTB_RESIZINGBORDER = HTTB_RESIZINGBORDER_LEFT or HTTB_RESIZINGBORDER_TOP or
    HTTB_RESIZINGBORDER_RIGHT or HTTB_RESIZINGBORDER_BOTTOM;
  {$EXTERNALSYM HTTB_RESIZINGBORDER}
  HTTB_SIZINGTEMPLATE = $100;
  {$EXTERNALSYM HTTB_SIZINGTEMPLATE}
  HTTB_SYSTEMSIZINGMARGINS = $200;
  {$EXTERNALSYM HTTB_SYSTEMSIZINGMARGINS}

(*// DrawThemeLine() flags
  DTL_LEFT = $1;
  DTL_TOP = $2;
  DTL_RIGHT = $4;
  DTL_BOTTOM = $8;*)

  ETDT_DISABLE = $1;
  {$EXTERNALSYM ETDT_DISABLE}
  ETDT_ENABLE = $2;
  {$EXTERNALSYM ETDT_ENABLE}
  ETDT_USETABTEXTURE = $4;
  {$EXTERNALSYM ETDT_USETABTEXTURE}
  ETDT_ENABLETAB = ETDT_ENABLE or ETDT_USETABTEXTURE;
  {$EXTERNALSYM ETDT_ENABLETAB}

// flags to control theming within an app
  STAP_ALLOW_NONCLIENT = $1;
  {$EXTERNALSYM STAP_ALLOW_NONCLIENT}
  STAP_ALLOW_CONTROLS = $2;
  {$EXTERNALSYM STAP_ALLOW_CONTROLS}
  STAP_ALLOW_WEBCONTENT = $4;
  {$EXTERNALSYM STAP_ALLOW_WEBCONTENT}

  SZ_THDOCPROP_DISPLAYNAME = 'DisplayName';
  SZ_THDOCPROP_CANONICALNAME = 'ThemeName';
  SZ_THDOCPROP_TOOLTIP = 'ToolTip';
  SZ_THDOCPROP_AUTHOR = 'author';

  TS_MIN = 0;
  {$EXTERNALSYM TS_MIN}
  TS_TRUE = 1;
  {$EXTERNALSYM TS_TRUE}
  TS_DRAW = 2;
  {$EXTERNALSYM TS_DRAW}

//vista extension
  DTT_TEXTCOLOR      = (1 shl 0);      // crText has been specified
  {$EXTERNALSYM DTT_TEXTCOLOR}
  DTT_BORDERCOLOR    = (1 shl 1);      // crBorder has been specified
  {$EXTERNALSYM DTT_BORDERCOLOR}
  DTT_SHADOWCOLOR    = (1 shl 2);      // crShadow has been specified
  {$EXTERNALSYM DTT_SHADOWCOLOR}
  DTT_SHADOWTYPE     = (1 shl 3);      // iTextShadowType has been specified
  {$EXTERNALSYM DTT_SHADOWTYPE}
  DTT_SHADOWOFFSET   = (1 shl 4);      // ptShadowOffset has been specified
  {$EXTERNALSYM DTT_SHADOWOFFSET}
  DTT_BORDERSIZE     = (1 shl 5);      // iBorderSize has been specified
  {$EXTERNALSYM DTT_BORDERSIZE}
  DTT_FONTPROP       = (1 shl 6);      // iFontPropId has been specified
  {$EXTERNALSYM DTT_FONTPROP}
  DTT_COLORPROP      = (1 shl 7);      // iColorPropId has been specified
  {$EXTERNALSYM DTT_COLORPROP}
  DTT_STATEID        = (1 shl 8);      // IStateId has been specified
  {$EXTERNALSYM DTT_STATEID}
  DTT_CALCRECT       = (1 shl 9);      // Use pRect as and in/out parameter
  {$EXTERNALSYM DTT_CALCRECT}
  DTT_APPLYOVERLAY   = (1 shl 10);     // fApplyOverlay has been specified
  {$EXTERNALSYM DTT_APPLYOVERLAY}
  DTT_GLOWSIZE       = (1 shl 11);     // iGlowSize has been specified
  {$EXTERNALSYM DTT_GLOWSIZE}
  DTT_CALLBACK       = (1 shl 12);     // pfnDrawTextCallback has been specified
  {$EXTERNALSYM DTT_CALLBACK}
  DTT_COMPOSITED     = (1 shl 13);     // Draws text with antialiased alpha (needs a DIB section)
  {$EXTERNALSYM DTT_COMPOSITED}

implementation

end.
